<!DOCTYPE html>
<html >
<head>
  <meta charset="UTF-8">
  <title>类别展示</title>
      <link rel="stylesheet" href="font/css/style.css">

  
</head>

<body>
  <div class="cont s--inactive">
  <!-- cont inner start -->
  <div class="cont__inner">
    <!-- el start -->
     <?php include_once 'design.admin.php';?>
     <?php if(!empty($lists)):foreach($lists as $key=>$val): ?>
    <div class="el">
      <div class="el__overflow">
        <div class="el__inner">
          <div class="el__bg"></div>
          <div class="el__preview-cont">
           
            <h1 class="el__heading">类别：<?php echo $scats[$val['cat_id']]['name'];?></h1>
          </div>
          <div class="el__content">
            <div class="el__text"><?php echo $val['title'] ?></div>
            <div class="el__text"><?php echo $val['created_at'] ?></div>
            <div class="el__text"><?php echo htmlspecialchars_decode( $val['content']); ?></div>
            <div class="el__close-btn"></div>
          </div>
        </div>
      </div>
      <div class="el__index">
        <div class="el__index-back"><?php mt_rand(1,4); ?></div>
        <div class="el__index-front">
          <div class="el__index-overlay" data-index="1"><?php mt_rand(1,4);?></div>
        </div>
      </div>
    </div>
    <?php endforeach; endif; ?>
    <!-- el end -->
    <!-- el start -->
  </div>
  <!-- cont inner end -->
</div>


    <script src="font/js/index.js"></script>

</body>
</html>
